#!/bin/sh -e

TARNAME="kiss-rootfs-xorg"
DATA=$(date +%d-%m-%y)

tar --exclude="./root/*" \
--exclude="./opt/*xz*" \
--exclude="./lib/modules/*" \
--exclude="./boot/*" \
--exclude="./lost+found" \
--exclude="./${TARNAME}-${DATA}.tar.x" \
-cvf - . | xz -9 -c - > ./${TARNAME}-${DATA}.tar.xz
